package com.beidouapp.service.impl;

import com.beidouapp.dao.RoleDao;
import com.beidouapp.dao.RoleGroupDao;
import com.beidouapp.domain.example.RoleExample;
import com.beidouapp.domain.example.RoleExample.Criteria;
import com.beidouapp.domain.pojo.Role;
import com.beidouapp.domain.pojo.RoleGroup;
import com.beidouapp.exception.BusinessException;
import com.beidouapp.service.RoleGroupService;
import com.beidouapp.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class RoleGroupServiceImpl implements RoleGroupService {

    @Autowired
    private RoleGroupDao roleGroupDao;

    public List<RoleGroup> findRoleGroups(RoleGroup roleGroup) {
        return roleGroupDao.findEntryList(roleGroup);
    }
}
